package org.TCPcase4;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.UUID;

public class Server {
    public static void main(String[] args) throws IOException {
//        目标：模拟一个服务端用来接收多个用户发来的多个数据，数据文件名使用uuid
        ServerSocket socket = new ServerSocket(10086);
        while (true) {
            Socket accept = socket.accept();
            new Thread(new MyRunnable(accept)).start();
        }
    }
}
